package com.lxmes.hr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.hr.mapper.NcWageArchiveMapper;
import com.lxmes.hr.domain.NcWageArchive;
import com.lxmes.hr.service.INcWageArchiveService;

/**
 * 工资归档Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-25
 */
@Service
public class NcWageArchiveServiceImpl implements INcWageArchiveService 
{
    @Autowired
    private NcWageArchiveMapper ncWageArchiveMapper;

    /**
     * 查询工资归档
     * 
     * @param id 工资归档主键
     * @return 工资归档
     */
    @Override
    public NcWageArchive selectNcWageArchiveById(Long id)
    {
        return ncWageArchiveMapper.selectNcWageArchiveById(id);
    }

    /**
     * 查询工资归档列表
     * 
     * @param ncWageArchive 工资归档
     * @return 工资归档
     */
    @Override
    public List<NcWageArchive> selectNcWageArchiveList(NcWageArchive ncWageArchive)
    {
        return ncWageArchiveMapper.selectNcWageArchiveList(ncWageArchive);
    }

    /**
     * 新增工资归档
     * 
     * @param ncWageArchive 工资归档
     * @return 结果
     */
    @Override
    public int insertNcWageArchive(NcWageArchive ncWageArchive)
    {
        return ncWageArchiveMapper.insertNcWageArchive(ncWageArchive);
    }

    /**
     * 修改工资归档
     * 
     * @param ncWageArchive 工资归档
     * @return 结果
     */
    @Override
    public int updateNcWageArchive(NcWageArchive ncWageArchive)
    {
        return ncWageArchiveMapper.updateNcWageArchive(ncWageArchive);
    }

    /**
     * 批量删除工资归档
     * 
     * @param ids 需要删除的工资归档主键
     * @return 结果
     */
    @Override
    public int deleteNcWageArchiveByIds(Long[] ids)
    {
        return ncWageArchiveMapper.deleteNcWageArchiveByIds(ids);
    }

    /**
     * 删除工资归档信息
     * 
     * @param id 工资归档主键
     * @return 结果
     */
    @Override
    public int deleteNcWageArchiveById(Long id)
    {
        return ncWageArchiveMapper.deleteNcWageArchiveById(id);
    }
}
